package com.antdesignbackend.backend.service.impl;

import com.antdesignbackend.backend.entity.Images;
import com.antdesignbackend.backend.entity.entityVo.ImagesVo;
import com.antdesignbackend.backend.mapper.ImagesMapper;
import com.antdesignbackend.backend.service.IImagesService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ImagesServiceImpl extends ServiceImpl<ImagesMapper, Images> implements IImagesService {
    @Autowired
    private ImagesMapper imagesMapper;


    @Override
    public List<ImagesVo> search(QueryWrapper<ImagesVo> queryWrapper, Page<ImagesVo> page) {
        return imagesMapper.search(queryWrapper, page);
    }
    @Override
    public Integer count(QueryWrapper<ImagesVo> queryWrapper) {
        return imagesMapper.count(queryWrapper);
    }

}
